Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/consensus/api/submission: Always clear nonce on error #5972

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

peternose
Copy link
Contributor

@peternose peternose commented Dec 13, 2024

In tests, some key managers occasionally register later than expected. This occurs because the VRFProve transaction check increments the nonce in the cache but fails as the node cannot be found in the registry. Subsequently, the RegisterNode transaction also fails due to an invalid nonce, as VRFProve transaction did not incremented the nonce in the consensus. Although the nonce is reset afterwards, this dance can persist indefinitely.

An alternative would be to somehow distinguish check-only failures from normal failures.

The impact of these changes on performance has not been tested.

Copy link

netlify bot commented Dec 13, 2024

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 512125a
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-core/deploys/675b8d2a727df00008589284

@peternose peternose merged commit 907d604 into master Dec 13, 2024
5 checks passed
@peternose peternose deleted the peternose/trivial/reset-nonce branch December 13, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants